package com.hangsu.train.components.service;

import com.hangsu.train.components.entity.Device;
import com.hangsu.train.components.params.DeviceParam;
import com.hangsu.train.components.params.IdParam;
import com.hangsu.train.components.params.PageRequestParam;
import org.springframework.data.domain.Page;

public interface DeviceService {

    Device getById(IdParam param);

    void add(DeviceParam param);

    void update(Device param);

    Page<Device> list(PageRequestParam param);

    void delete(IdParam param);
}
